using System;

namespace WebBrowser
{
    public class HistoryItem
    {
        public string Title { get; set; }
        public string Url { get; set; }
        public string FaviconUrl { get; set; }
        public DateTime VisitTime { get; set; }
        public int VisitCount { get; set; }

        public HistoryItem()
        {
            Title = string.Empty;
            Url = string.Empty;
            FaviconUrl = string.Empty;
            VisitTime = DateTime.Now;
            VisitCount = 1;
        }

        public HistoryItem(string title, string url, string faviconUrl = "")
        {
            Title = title;
            Url = url;
            FaviconUrl = faviconUrl;
            VisitTime = DateTime.Now;
            VisitCount = 1;
        }
    }
}